<%@ page language="java" import="java.util.*"
	contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<h2 class="contentTitle" style="color:red">${tklx == '1' ? '科目1' : '科目4'} 错题复习测试  </h2>
<script type="text/javascript">
	function checkbz(a){
		$(a).find("span").show();
		return false;
	}
	function checks(a){
		var ids=new Array();
		var Jqform=$(a);
		if($(a).find("input.dxbz:checked").size()<2){
			alert("请选择多个答案！");
			return false;
		}
		$(a).find("span").show();
		return false;
	}
</script>
<table class="list" width="50%" layoutH="60">
	<tr>
		<th colspan="4"><h2>全部为错题记录 单选题：</h2></th>
	</tr>
	<c:forEach varStatus="s" items="${zxkstm3List }" var="item">
		<tr>
			<td>
				<form action="#" method="post" onsubmit="return checkbz(this);">
					<input type="hidden" name="id" value="${item.id}" />
					<table class="table" width="100%">
						<tr>
							<td colspan="4">${s.index + 1}: ${item.tm}</td>
						</tr>
						<tr>
							<td><label> A <input type="radio" name="lsda"
									value="A" /></label></td>
							<td>${item.d1}</td>
							<td><label> B <input type="radio" name="lsda"
									value="B" /></label></td>
							<td>${item.d2}</td>
						</tr>
						<tr>
							<td><label> C <input type="radio" name="lsda"
									value="C" /></label></td>
							<td>${item.d3}</td>
							<td><label> D <input type="radio" name="lsda"
									value="D" /></label></td>
							<td>${item.d4}</td>
						</tr>
						<tr>
							<td colspan="4"><label>题目分数</label> ${item.fs}----<label>所属科目</label>
								${item.tkname}----
								<button type="submit">看答案</button> <span style="display:none">正确答案:
									${item.zq} </span></td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
	</c:forEach>
	<tr>
		<th colspan="4"><h2>复习测试，多选题：</h2></th>
	</tr>
	<c:forEach varStatus="s" items="${zxkstm4List }" var="item">
		<tr>
			<td>
				<form action="#" method="post" onsubmit="return checks(this);">
					<input type="hidden" name="id" value="${item.id}" />
					<table class="table" width="100%">
						<tr>
							<td colspan="4">${s.index + 1}: ${item.tm}</td>
						</tr>
						<tr>
							<td><label> A <input type="checkbox" name="lsda2"
									class="dxbz" value="A" /></label></td>
							<td>${item.d1}</td>
							<td><label> B <input type="checkbox" name="lsda2"
									class="dxbz" value="B" /></label></td>
							<td>${item.d2}</td>
						</tr>
						<tr>
							<td><label> C <input type="checkbox" name="lsda2"
									class="dxbz" value="C" /></label></td>
							<td>${item.d3}</td>
							<td><label> D <input type="checkbox" name="lsda2"
									class="dxbz" value="D" /></label></td>
							<td>${item.d4}</td>
						</tr>
						<tr>
							<td colspan="4"><label>题目分数</label> ${item.fs} ----<label>所属科目</label>
								${item.tkname}----
								<button type="submit">看答案</button> <span style="display:none">正确答案:
									${item.zq} </span></td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
	</c:forEach>

</table>

